package com.property.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.property.entity.Complaint;
import com.property.entity.ComplaintDispose;

public interface ComplaintDao {
	List<Complaint> getAll(@Param("index") int index, @Param("size") int size,
			@Param("type") String type, @Param("id") int id);
	int getUntreatedCount();
	Complaint ComAll(int id);
	int getTSCount(int communityid);
	int comCount(@Param("type")String type,@Param("id")int id);
	void updateCom(int id);
	void addComplaint(Complaint complaint); 
	List<ComplaintDispose> getByOid(@Param("oid")int oid,@Param("index")int index,@Param("size")int size);
	void deleteComp(@Param("oid")int oid);
	List<Complaint> getComplaints(int oid);
	ComplaintDispose getByCdid(int id);
	void delComplaint(int cid);
}
